home *** CD-ROM | disk | FTP | other *** search
/ livebox / Livebox 2.0 TPSA installation application vRC3_08.09.2010.iso / CK_animations / pl / adsl / anim03b.swf / scripts / frame_1 / DoAction.as
Text File  |  2009-11-05  |  1KB  |  46 lines

  1. this.survolplay.gotoAndStop(2);
  2. curseur_init = 113;
  3. curseur_fin = 638;
  4. taille_barre = curseur_fin - curseur_init;
  5. nombreframes = this._totalframes;
  6. revenir_btn.onRelease = function()
  7. {
  8.    gotoAndPlay(1);
  9.    survolplay.gotoAndStop(2);
  10.    survolpause.gotoAndStop(1);
  11. };
  12. btplay.onRelease = function()
  13. {
  14.    play();
  15.    survolplay.gotoAndStop(2);
  16.    survolpause.gotoAndStop(1);
  17. };
  18. btpause.onRelease = function()
  19. {
  20.    stop();
  21.    survolpause.gotoAndStop(2);
  22.    survolplay.gotoAndStop(1);
  23. };
  24. curseur.onPress = function()
  25. {
  26.    stop();
  27.    delete this.onEnterFrame;
  28.    survolpause.gotoAndStop(2);
  29.    survolplay.gotoAndStop(1);
  30.    startDrag(this,1,curseur_init,this._y,curseur_fin,this._y);
  31.    this._parent.onEnterFrame = function()
  32.    {
  33.       destination = Math.floor(nombreframes * (curseur._x - curseur_init) / taille_barre);
  34.       gotoAndStop(destination);
  35.    };
  36. };
  37. curseur.onRelease = curseur.onReleaseOutside = function()
  38. {
  39.    stopDrag();
  40.    delete this._parent.onEnterFrame;
  41.    this.onEnterFrame = function()
  42.    {
  43.       this._x = curseur_init + barre_orange._width - 5;
  44.    };
  45. };
  46.